/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-core
 * Filename：	PassengerFlowRptServiceImpl.java
 * Created：		2017年4月27日
 * Creator：		wolv
 */
package com.thor.palmmall.impl.rpt.passengerflow;

import org.springframework.beans.factory.annotation.Autowired;

import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.util.Assert;
import com.thor.palmmall.api.rpt.Report;
import com.thor.palmmall.api.rpt.passengerflow.DailyPassengerFlowReportParam;
import com.thor.palmmall.api.rpt.passengerflow.PassengerFlowRptService;
import com.thor.palmmall.dao.rpt.passengerflow.PassengerFlowRptDao;

/**
 * @author wolv
 *
 */
public class PassengerFlowRptServiceImpl implements PassengerFlowRptService {

	@Override
	public Report getReport(DailyPassengerFlowReportParam param) throws ThorServiceException {
		Assert.assertArgumentNotNull(param, "param");

		return passengerFlowDao.calcDailyReport(param);
	}

	@Autowired
	private PassengerFlowRptDao passengerFlowDao;
}
